!("Hello" =~ /^H/).nil? # true (starts with the letter H) !("OH" =~ /^H/).nil? # false (starts with the letter O)